#ifndef __MYTHREAD_H
#define __MYTHTRAD_H
#include "thread.hpp"
#include "threadpool.hpp"
namespace moqi
{
class Mythread:public Thread
{
public:
    Mythread(Threadpool & tl):_threadpool(tl) {}
    ~Mythread() {}
    void run()override{
        _threadpool.doTask();
    }

private:
    Threadpool & _threadpool;
};
}
#endif
